home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DDJMAG / DDJ9207.ZIP / AVKCAPT.ZIP / BITFLAGS.H < prev    next >
C/C++ Source or Header  |  1992-03-11  |  654b  |  26 lines

  1. //-------------------------------------------------------------------------
  2. //            ActionMedia II Programmer's Toolkit
  3. //    
  4. //            Windows Motion Player Sample Program
  5. //    
  6. //Header Name:    bitflags.h
  7. //
  8. //Description:    header file with macros to manipulate bits in a char array.
  9. //    
  10. //    Copyright Intel Corp. 1991, 1992
  11. //    All Rights Reserved.
  12. //                
  13. //-------------------------------------------------------------------------
  14.  
  15. #ifndef BITFLAGS_H
  16. #define BITFLAGS_H
  17.  
  18. #define    TestFlag(x, y)        ( (x) &   (y) )
  19. #define    SetFlag(x, y)        ( (x) |=  (y) ) 
  20. #define    ClearFlag(x, y)        ( (x) &= ~(y) )
  21. #define    FlipFlag(x, y)        ( (x) ^=  (y) )
  22.  
  23. #endif
  24.  
  25.  
  26.